package com.cxria.dubo.consumer.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cxria.dubbo.service.AnnotateService;
import com.cxria.dubo.consumer.service.AnnotationConsumeService;
import org.springframework.stereotype.Component;

@Component
public class AnnotationConsumeServiceImpl implements AnnotationConsumeService {

//    @Reference
    @Reference(url = "dubbo://127.0.0.1:20880")
    private AnnotateService annotateService;

    @Override
    public String sayHello(String name) {
        return annotateService.sayHello(name);
    }

}
